import { AppModelService, IDoorCoveringHardwareMode } from '@manycore/pages-vm-api';
import { ApiImpl } from 'message-lite';
import { getSelectedElements } from '../../util';

@ApiImpl()
export class AppModelServiceImpl extends AppModelService {
  async getCurrentOption(): Promise<IDoorCoveringHardwareMode> {
    return IDP.Custom.DoorCoveringHardware.getOption();
  }

  async getCurrentSelectedModelCount(): Promise<number> {
    return getSelectedElements().length;
  }
}
